package com.kk.command;

public class LightOnCommand implements Command {

    private final LightReceiver receiver;

    public LightOnCommand() {
        this.receiver = new LightReceiver();
    }

    @Override
    public void execute() {
        receiver.turnOn();
    }

    @Override
    public void undo() {
        receiver.turnOff();
    }
}
